package com.chixing.controller;


import com.chixing.service.IOrderCancelRulesService;
import com.chixing.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author smith
 * @since 2025-09-30
 */
@CrossOrigin
@RestController
    @RequestMapping("/order-cancel-rules")
public class OrderCancelRulesController {
    @Autowired
    public IOrderCancelRulesService orderCancelRulesService;
    @GetMapping
    public Result getAll(){
        Result result = orderCancelRulesService.getAll();
        return result;
    }

}
